package com.gexin.model.activity.base;

import com.gexin.model.activity.Cashback;

import java.util.Comparator;

public class CashbackComparaotor implements Comparator<Cashback> {

    @Override
    public int compare(Cashback o1, Cashback o2) {
        if (o1.getCashbackBalanceSum().compareTo(o2.getCashbackBalanceSum()) == -1) {
            return -1;
        }
        if (o1.getCashbackBalanceSum().compareTo(o2.getCashbackBalanceSum())==1) {
            return 1;
        }
        return 0;
    }


}
